<template>
  <el-container>
    <el-header>微应用</el-header>
    <el-container class="main">
      <el-aside width="200px">
        <el-menu router>
          <el-submenu index="1">
            <template slot="title">
              <el-menu-item index="/">主应用</el-menu-item>
            </template>
          </el-submenu>
          <el-submenu index="2">
            <template slot="title">
              <el-menu-item index="/vueRule">vue 微应用</el-menu-item>
            </template>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">
              <el-menu-item index="/reactRule">react 微应用</el-menu-item>
            </template>
          </el-submenu>
        </el-menu>
      </el-aside>
      <el-main>
        <div id="container"></div>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script>

export default {
  methods: {
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.main {
  display: flex;
  flex-direction: row;
}
.el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 40px;
  }
  ul {
    list-style: none !important;
  }

  .el-main {
    flex-grow: 1;
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }
  
  .el-submenu__title {
    padding: 0 !important;
  }
  .el-submenu__title:hover {
    background: #ddd;
    color: #fff;
  }
  .el-menu-item {
    padding: 0 !important;
  }
  .el-menu {
    padding: 0 !important;
  }

  .is-active {
    color: #fff;
    background: blue;
  }
</style>
